package com.example.demo.dao.lxy;

import com.example.demo.entity.Role;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleDao {
    @Select({"select * from system_role"})
    public List<Role> findall();
    @Select("select * from system_permission where name=#{name}")
    public List<Role> findByName(String name);
}